package com.etc.traval.dao;

import java.util.List;

import com.etc.travel.entity.Place;
import com.etc.travel.entity.Strategy;

public interface StrategyDao {

	//添加一个新攻略
	public boolean strategyAdd(Strategy strategy);
	//查询所有的攻略(已通过的)
	public List<Strategy> queryAllStrategy(int page, int size);
	//根据id查找攻略
	public Strategy querySTrategyById(int id);
	//根据景点查找攻略
	public List<Strategy> querySTrategyByPlace(Place place,int page,int size);
	//根据根据id删除攻略
	public boolean deleteStrategyById(int id);
	//查询所有的攻略(未通过的)
	public List<Strategy> queryAllStrategyByAdmin(int page, int size);
	//让一个未通过审核的攻略变为通过审核
	public boolean updatestrategyok(int id);
}
